package com.ruoyi.dict.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.dict.mapper.TDictRptOrderStatusMapper;
import com.ruoyi.dict.domain.TDictRptOrderStatus;
import com.ruoyi.dict.service.ITDictRptOrderStatusService;

/**
 * 报修单状态字典Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-21
 */
@Service
public class TDictRptOrderStatusServiceImpl implements ITDictRptOrderStatusService 
{
    @Autowired
    private TDictRptOrderStatusMapper tDictRptOrderStatusMapper;

    /**
     * 查询报修单状态字典列表
     * 
     * @param tDictRptOrderStatus 报修单状态字典
     * @return 报修单状态字典
     */
    @Override
    public List<TDictRptOrderStatus> selectTDictRptOrderStatusList(TDictRptOrderStatus tDictRptOrderStatus)
    {
        return tDictRptOrderStatusMapper.selectTDictRptOrderStatusList(tDictRptOrderStatus);
    }

    /**
     * 根据编码查询报修单状态字典
     * 
     * @param code 编码
     * @return 报修单状态字典
     */
    @Override
    public TDictRptOrderStatus selectTDictRptOrderStatusByCode(String code)
    {
        return tDictRptOrderStatusMapper.selectTDictRptOrderStatusByCode(code);
    }

    /**
     * 新增报修单状态字典
     * 
     * @param tDictRptOrderStatus 报修单状态字典
     * @return 结果
     */
    @Override
    public int insertTDictRptOrderStatus(TDictRptOrderStatus tDictRptOrderStatus)
    {
        return tDictRptOrderStatusMapper.insertTDictRptOrderStatus(tDictRptOrderStatus);
    }

    /**
     * 修改报修单状态字典
     * 
     * @param tDictRptOrderStatus 报修单状态字典
     * @return 结果
     */
    @Override
    public int updateTDictRptOrderStatus(TDictRptOrderStatus tDictRptOrderStatus)
    {
        return tDictRptOrderStatusMapper.updateTDictRptOrderStatus(tDictRptOrderStatus);
    }

    /**
     * 批量删除报修单状态字典
     * 
     * @param codes 需要删除的报修单状态字典编码
     * @return 结果
     */
    @Override
    public int deleteTDictRptOrderStatusByCodes(String[] codes)
    {
        return tDictRptOrderStatusMapper.deleteTDictRptOrderStatusByCodes(codes);
    }

    /**
     * 删除报修单状态字典信息
     * 
     * @param code 报修单状态字典编码
     * @return 结果
     */
    @Override
    public int deleteTDictRptOrderStatusByCode(String code)
    {
        return tDictRptOrderStatusMapper.deleteTDictRptOrderStatusByCode(code);
    }
}